#include "Buttonl.h"
#include "ui_Buttonl.h"

Buttonl::Buttonl(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Buttonl)
{
    ui->setupUi(this);
}

Buttonl::~Buttonl()
{
    delete ui;
}

void Buttonl::on_pushButton_o_clicked()
{
    emit senddata_l(ui->spinBox_dir->value(),ui->spinBox_dis->value());
    this->accept();
    ui->spinBox_dir->setValue(0);
    ui->spinBox_dis->setValue(0);
}

void Buttonl::on_pushButton_c_clicked()
{
    this->accept();
    ui->spinBox_dir->setValue(0);
    ui->spinBox_dis->setValue(0);
}
